package www.openteam.com.bean;

/**
 * Created by Administrator on 2019-04-02.
 */

public class DocPrice {
    double element1;
    double element2;
    double element3;
    double element4;

    public double getElement2() {
        return element2;
    }

    public void setElement2(double element2) {
        this.element2 = element2;
    }

    public double getElement3() {
        return element3;
    }

    public void setElement3(double element3) {
        this.element3 = element3;
    }

    public double getElement4() {
        return element4;
    }

    public void setElement4(double element4) {
        this.element4 = element4;
    }

    public double getElement1() {
        return element1;
    }

    public void setElement1(double element1) {
        this.element1 = element1;
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DocPrice docPrice = (DocPrice) o;

        if (Double.compare(docPrice.element1, element1) != 0) return false;
        if (Double.compare(docPrice.element2, element2) != 0) return false;
        if (Double.compare(docPrice.element3, element3) != 0) return false;
        return Double.compare(docPrice.element4, element4) == 0;
    }

    @Override
    public int hashCode() {
        int result;
        long temp;
        temp = Double.doubleToLongBits(element1);
        result = (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(element2);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(element3);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(element4);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        return result;
    }

    public DocPrice(double element1, double element2, double element3, double element4) {

        this.element1 = element1;
        this.element2 = element2;
        this.element3 = element3;
        this.element4 = element4;
    }
}
